package com.mac.hosp_pre.admin.entity;

import com.mac.hosp_pre.admin.base.BaseMongoEntity;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Department(科室)
 *
 * @author mac
 */
@Data
@Document("Department")
public class Department extends BaseMongoEntity {
	
	private static final long serialVersionUID = 1L;

	@Indexed //普通索引
	private String hospCode;

	/**
	 * 科室描述
	 */
	@Indexed(unique = true) //唯一索引
	private String deptCode;

	/**
	 * 科室名称
	 */
	private String deptName;

	/**
	 * 科室描述
	 */
	private String intro;

	/**
	 * 大科室编号
	 */
	@Indexed //普通索引
	private String bigCode;

	/**
	 * 大科室名称
	 */
	private String bigName;

}

